package com.kinghunt.misp.dal.dao.userx;

import com.kinghunt.misp.dal.model.userx.UserPermissionDO;

import java.util.List;

/**
* 用户-权限白名单
* Created by Mybatis Generator on 2023/07/04
*/
public interface UserPermissionDAO {
    int deleteByPrimaryKey(Long id);

    int insert(UserPermissionDO record);

    int insertSelective(UserPermissionDO record);

    UserPermissionDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserPermissionDO record);

    int updateByPrimaryKey(UserPermissionDO record);

    List<UserPermissionDO> selectByUserId(Long userId);

    int deleteByUserId(Long userId);

    int insertBatch(List<UserPermissionDO> records);
}